package com.yohann.designPattern.builder;

/**
 * <p>
 * 消费者
 * </p>
 *
 * @author Yohann
 * @since 2021/2/2 16:45
 */
public class HouseConsumer {
    public static void main(String[] args) {
        SmallHouse smallHouseProvider = new SmallHouse();
        House smallHouse = new HouseDirector(smallHouseProvider).constructHouse();

        //House{basic='small-basic', wall='small-walls', roof='small-roofed'}
        System.out.println(smallHouse);


        BigHouse bigHouseProvider = new BigHouse();
        House bigHouse = new HouseDirector(bigHouseProvider).constructHouse();

        //House{basic='big-basic', wall='big-walls', roof='big-roofed'}
        System.out.println(bigHouse);
    }
}